package com.shupian.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户注册dto")
public class RegisterUserDTO {
    @ApiModelProperty("用户名")
    //用户名
    @NotBlank
    private String userName;
    @ApiModelProperty("密码")
    //密码
    @NotBlank
    private String password;
    //昵称
    @NotBlank
    @ApiModelProperty("昵称")
    private String nickName;

    //邮箱
    @Email
    @ApiModelProperty("邮箱")
    private String email;

}
